<template>
  <a-input :value="formGlobal.formValue[props.data.id]" @input="handleInput" />
</template>
<script setup>
import { defineProps, inject } from "vue";
const props = defineProps({
  data: Object,
});

const formGlobal = inject("formGlobal");
const handleInput = (e) => {
  const value = e.target.value;
  formGlobal.handleFormUpdate({ [props.data.id]: value });
};
</script>
